﻿module Enferno.Public.Web.Components.Models {
    export class PromotionApplicationResultModel {
        public appliedPromotion: PromotionModel;
        public basket: BasketModel;

        constructor(serverData?: any) {
            if (serverData != null) {

                if (serverData.appliedPromotion != null) {
                    this.appliedPromotion = new PromotionModel(serverData.appliedPromotion);
                }

                if (serverData.basket != null) {
                    this.basket = new BasketModel(serverData.basket);
                }
            }
        }
    }
} 